﻿namespace Liger.Web.UI
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text; 

    public class GridBaseSettings 
    {


        public bool? Sortable
        {
            get;
            set;
        }

        public object Data
        {
            get;
            set;
        }

        public string Title
        {
            get;
            set;
        }
        /// <summary>
        /// 宽度值
        /// </summary>
        public string Width
        {
            get;
            set;
        }
        /// <summary>
        /// 高度值
        /// </summary>
        public string Height
        {
            get;
            set;
        }
        /// <summary>
        /// table是否可伸缩(不可用)
        /// </summary>
        public bool? Resizable
        {
            get;
            set;
        }



        /// <summary>
        /// 是否显示'显示隐藏Grid'按钮 
        /// </summary>
        public bool? ShowTableToggleBtn
        {
            get;
            set;
        }
        /// <summary>
        /// 切换每页记录数是否应用ligerComboBox
        /// </summary>
        public bool? SwitchPageSizeApplyComboBox
        {
            get;
            set;
        }
        /// <summary>
        /// 是否滚动
        /// </summary>
        public bool? IsScroll
        {
            get;
            set;
        }
        /// <summary>
        /// 是否以窗口的高度为准 height设置为百分比时可用
        /// </summary>
        public bool? InWindow
        {
            get;
            set;
        }
        /// <summary>
        /// 默认时间显示格式
        /// </summary>
        public string DateFormat
        {
            get;
            set;
        }
        /// <summary>
        /// 高度补差,当设置height:100%时，可能会有高度的误差，可以通过这个属性调整
        /// </summary>
        public int? HeightDiff
        {
            get;
            set;
        }
        /// <summary>
        /// Grid 附加 CSS 类名
        /// </summary>
        public string CssClass
        {
            get;
            set;
        }

        /// <summary>
        /// 初始化时是否不加载
        /// </summary>
        public bool? DelayLoad
        {
            get;
            set;
        }
        /// <summary>
        /// 数据过滤查询函数,(参数一 data item，参数二 data item index)
        /// </summary>
        public Func<string> Where
        {
            get;
            set;
        }
        /// <summary>
        /// 获取时间 函数
        /// </summary>
        public Func<string> RenderDate
        {
            get;
            set;
        }


    }
}
